<!--
描述：理论课程组件
开发人：fwb
开发日期：2017年8月22日
-->
<template lang="pug">
    keep-alive
        kalix-table(bizKey="theoryCourse" title='理论课程信息列表' v-bind:tableFields="tableFields" v-bind:targetURL="targetURL"
        v-bind:bizDialog="bizDialog"  v-bind:bizSearch="'TheoryCourseSearch'" v-bind:btnList="btnList" v-bind:dictDefine="dictDefine"
        v-bind:isFixedColumn="isFixedColumn")
            template(slot="tableColumnSlot")
                el-table-column(prop="kcdm" label="课程代码" align="center" width="120px")
                el-table-column(prop="zwmc" label="中文名称" align="center" width="200px")
                el-table-column(prop="ywmc" label="英文名称" align="center" width="200px")
                el-table-column(prop="cddwmc" label="承担单位" align="center" width="200px")
                el-table-column(label="课程类别" align="center" width="200px")
                    template(slot-scope="scope")
                        | {{scope.row.kclb1Name + '  ' + scope.row.kclb2Name}}
                el-table-column(prop="zxf" label="总学分" align="center" width="120px")
                el-table-column(label="学时" align="center")
                    el-table-column(prop="jsxs" label="理论学时" align="center" width="100px")
                    el-table-column(prop="syxs" label="课内实践" align="center" width="100px")
                    el-table-column(prop="sjxs" label="课外实践" align="center" width="100px")
                    el-table-column(prop="qtxs" label="其它学时" align="center" width="100px")
                    el-table-column(prop="zxs" label="总学时" align="center" width="100px")
</template>

<script type="text/ecmascript-6">
    import {TheoryCourseURL, ToolButtonList} from '../../config.toml'

    export default {
        name: 'kalix-admin-theorycourse',
        data() {
            return {
                btnList: ToolButtonList,
                dictDefine: [{ // 定义数据字典的显示
                    cacheKey: 'ADMIN-DICT-KEY',
                    type: '课程类别1',
                    targetField: 'kclb1Name',
                    sourceField: 'kclb1'
                }, {
                    cacheKey: 'ADMIN-DICT-KEY',
                    type: '课程类别2',
                    targetField: 'kclb2Name',
                    sourceField: 'kclb2'
                }],
                targetURL: TheoryCourseURL,
                tableFields: [
                    {prop: '', label: ''},

                ],
                bizDialog: [
                    {id: 'view', dialog: 'TheoryCourseView'},
                    {id: 'edit', dialog: 'TheoryCourseAdd'},
                    {id: 'add', dialog: 'TheoryCourseAdd'}
                ],
                isFixedColumn: true
            }
        },
        components: {},
        created() {
        },
        activated() {
        },
        deactivated() {
        },
        methods: {
        }
    }
</script>

<style scoped lang="stylus">
</style>
